<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div id="root" @click.prevent="show" style="width: 100px;height: 100px; background-color: blue">

    <button @click="show">点我提示信息</button>
</div>


<div id="root2" @click.stop="show" style="width: 100px;height: 100px; background-color: blue">

    <button @click="show">点我提示信息</button>
</div>


<script src="script/vue.js"></script>

<script>
    let vue1 = new Vue({
        el: '#root',
        methods: {
            show(){
                alert("提示信息11");
            }
        }
    });


    let vue2 = new Vue({
        el: '#root2',
        methods: {
            show(){
                alert("提示信息11");
            }
        }
    });
</script>

</body>
</html>
